<?php

return array(
	// routing (probably needs work)
	'router' => array(
		'routes' => array(
			'ledger' => array(
				'type'					 => 'Literal',
				'options'				 => array(
					'route'		 => '/ledger',
					'defaults' => array(
						'__NAMESPACE__'	 => 'Ledger\Controller',
						'controller'		 => 'Account',
						'action'				 => 'index',
					),
				),
				'may_terminate'	 => true,
				'child_routes'	 => array(
					'default' => array(
						'type'		 => 'Segment',
						'options'	 => array(
							'route'				 => '/[:controller[/:action]]',
							'constraints'	 => array(
								'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
								'action'		 => '[a-zA-Z][a-zA-Z0-9_-]*',
							),
							'defaults'		 => array(
							),
						),
					),
				),
			),
		),
	),
	// standard autoloader translation settings (wish they were just default...)
	'controllers' => array(
		'invokables' => array(
			'Ledger\Controller\Account'	 => 'Ledger\Controller\AccountController',
			'Ledger\Controller\Bill'		 => 'Ledger\Controller\BillController'
		),
	),
	'view_manager' => array(
		'template_path_stack'			 => array(
			__DIR__ . '/../view',
		),
	),
	
	// Import Ledger Database Configuration
	'db'							 => array(
		'driver'	 => 'Pdo',
		'dsn'			 => 'pgsql:dbname=housebank;host=localhost',
		'user'		 => 'housebank',
		'password' => 'ozzydog'
	),
	'service_manager'	 => array(
		'factories' => array(
			'Zend\Db\Adapter\Adapter'
			=> 'Zend\Db\Adapter\AdapterServiceFactory',
		),
	),
);
